package com.atguigu.product.feign;

import com.atguigu.product.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "ads-service", url = "https://api.abatour.com")
public interface SGLSCreateOrderCient {
    /**https://api.abatour.com/merchant/tkt/client/product/stock
     * {"productId":211,"merchantId":172,"playDate":"2025-10-20"}
     * @param productId
     * @return
     */
    @PostMapping("/merchant/tkt/client/product/stock")
    public Product getProductId(@PathVariable("id") Long productId);
}